package misc;

import java.io.Serializable;

public class CharacterValue implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	private int charA = 10;
	private int charB = 11;
	private int charC = 12;
	private int charD = 13;
	private int charE = 14;
	private int charF = 15;
	private int charG = 16;
	private int charH = 17;
	private int charI = 18;
	private int charJ = 19;
	private int charK = 20;
	private int charL = 21;
	private int charM = 22;
	private int charN = 23;
	private int charO = 24;
	private int charP = 25;
	private int charQ = 26;
	private int charR = 27;
	private int charS = 28;
	private int charT = 29;
	private int charU = 30;
	private int charV = 31;
	private int charW = 32;
	private int charX = 33;
	private int charY = 34;
	private int charZ = 35;
	
	public CharacterValue() {

	}
	
	public CharacterValue(int charA, int charB, int charC, int charD,
			int charE, int charF, int charG, int charH, int charI, int charJ,
			int charK, int charL, int charM, int charN, int charO, int charP,
			int charQ, int charR, int charS, int charT, int charU, int charV,
			int charW, int charX, int charY, int charZ) {
		super();
		this.charA = charA;
		this.charB = charB;
		this.charC = charC;
		this.charD = charD;
		this.charE = charE;
		this.charF = charF;
		this.charG = charG;
		this.charH = charH;
		this.charI = charI;
		this.charJ = charJ;
		this.charK = charK;
		this.charL = charL;
		this.charM = charM;
		this.charN = charN;
		this.charO = charO;
		this.charP = charP;
		this.charQ = charQ;
		this.charR = charR;
		this.charS = charS;
		this.charT = charT;
		this.charU = charU;
		this.charV = charV;
		this.charW = charW;
		this.charX = charX;
		this.charY = charY;
		this.charZ = charZ;
	}
	
	public int getChar(char character){
		char c = Character.toUpperCase(character);
		switch (c) {
		case 'A':return getCharA();
		case 'B':return getCharB();
		case 'C':return getCharC();
		case 'D':return getCharD();
		case 'E':return getCharE();
		case 'F':return getCharF();
		case 'G':return getCharG();
		case 'H':return getCharH();
		case 'I':return getCharI();
		case 'J':return getCharJ();
		case 'K':return getCharK();
		case 'L':return getCharL();
		case 'M':return getCharM();
		case 'N':return getCharN();
		case 'O':return getCharO();
		case 'P':return getCharP();
		case 'Q':return getCharQ();
		case 'R':return getCharR();
		case 'S':return getCharS();
		case 'T':return getCharT();
		case 'U':return getCharU();
		case 'V':return getCharV();
		case 'W':return getCharW();
		case 'X':return getCharX();
		case 'Y':return getCharY();
		case 'Z':return getCharZ();

		default:return 0;
		}
	}
	
	public void setChar(char character,int value){
		char c = Character.toUpperCase(character);
		switch (c) {
		case 'A':setCharA(value); break;
		case 'B':setCharB(value); break;
		case 'C':setCharC(value); break;
		case 'D':setCharD(value); break;
		case 'E':setCharE(value); break;
		case 'F':setCharF(value); break;
		case 'G':setCharG(value); break;
		case 'H':setCharH(value); break;
		case 'I':setCharI(value); break;
		case 'J':setCharJ(value); break;
		case 'K':setCharK(value); break;
		case 'L':setCharL(value); break;
		case 'M':setCharM(value); break;
		case 'N':setCharN(value); break;
		case 'O':setCharO(value); break;
		case 'P':setCharP(value); break;
		case 'Q':setCharQ(value); break;
		case 'R':setCharR(value); break;
		case 'S':setCharS(value); break;
		case 'T':setCharT(value); break;
		case 'U':setCharU(value); break;
		case 'V':setCharV(value); break;
		case 'W':setCharW(value); break;
		case 'X':setCharX(value); break;
		case 'Y':setCharY(value); break;
		case 'Z':setCharZ(value); break;
		}
	}
	

	public int getCharA() {
		return charA;
	}
	public void setCharA(int charA) {
		this.charA = charA;
	}
	public int getCharB() {
		return charB;
	}
	public void setCharB(int charB) {
		this.charB = charB;
	}
	public int getCharC() {
		return charC;
	}
	public void setCharC(int charC) {
		this.charC = charC;
	}
	public int getCharD() {
		return charD;
	}
	public void setCharD(int charD) {
		this.charD = charD;
	}
	public int getCharE() {
		return charE;
	}
	public void setCharE(int charE) {
		this.charE = charE;
	}
	public int getCharF() {
		return charF;
	}
	public void setCharF(int charF) {
		this.charF = charF;
	}
	public int getCharG() {
		return charG;
	}
	public void setCharG(int charG) {
		this.charG = charG;
	}
	public int getCharH() {
		return charH;
	}
	public void setCharH(int charH) {
		this.charH = charH;
	}
	public int getCharI() {
		return charI;
	}
	public void setCharI(int charI) {
		this.charI = charI;
	}
	public int getCharJ() {
		return charJ;
	}
	public void setCharJ(int charJ) {
		this.charJ = charJ;
	}
	public int getCharK() {
		return charK;
	}
	public void setCharK(int charK) {
		this.charK = charK;
	}
	public int getCharL() {
		return charL;
	}
	public void setCharL(int charL) {
		this.charL = charL;
	}
	public int getCharM() {
		return charM;
	}
	public void setCharM(int charM) {
		this.charM = charM;
	}
	public int getCharN() {
		return charN;
	}
	public void setCharN(int charN) {
		this.charN = charN;
	}
	public int getCharO() {
		return charO;
	}
	public void setCharO(int charO) {
		this.charO = charO;
	}
	public int getCharP() {
		return charP;
	}
	public void setCharP(int charP) {
		this.charP = charP;
	}
	public int getCharQ() {
		return charQ;
	}
	public void setCharQ(int charQ) {
		this.charQ = charQ;
	}
	public int getCharR() {
		return charR;
	}
	public void setCharR(int charR) {
		this.charR = charR;
	}
	public int getCharS() {
		return charS;
	}
	public void setCharS(int charS) {
		this.charS = charS;
	}
	public int getCharT() {
		return charT;
	}
	public void setCharT(int charT) {
		this.charT = charT;
	}
	public int getCharU() {
		return charU;
	}
	public void setCharU(int charU) {
		this.charU = charU;
	}
	public int getCharV() {
		return charV;
	}
	public void setCharV(int charV) {
		this.charV = charV;
	}
	public int getCharW() {
		return charW;
	}
	public void setCharW(int charW) {
		this.charW = charW;
	}
	public int getCharX() {
		return charX;
	}
	public void setCharX(int charX) {
		this.charX = charX;
	}
	public int getCharY() {
		return charY;
	}
	public void setCharY(int charY) {
		this.charY = charY;
	}
	public int getCharZ() {
		return charZ;
	}
	public void setCharZ(int charZ) {
		this.charZ = charZ;
	}
	
	
	
}
